import axios from '@/utils/request'

export const getOrganizationTree = () => axios.get('/manager/business-hall/tree')
export const getOrganizationItem = id => axios.get(`/manager/business-hall/${id}`)
export const editOrganizationItem = data => axios.post(`/manager/business-hall`, data)
export const getArea = parentId => axios.get('/manager/areas/children', {params: {parentId}})
export const getOrganizationList = data => axios.get('/manager/business-hall/user/page', {params: data})
export const getTemplate = () => axios.get('/manager/carriages')
export const addTemplate = data => axios.post('/manager/carriages', data)
export const delTemplate = id => axios.delete(`/manager/carriages/${id}`)